<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<style>
#room1,#ting1,#kitchen1,#wei1,#balcony1 {width: 40px}
select {width: 80px}
</style>
<script type="text/javascript">
var cusUrl = "${pageContext.request.contextPath}/custome/addCustome.html";
 $(function(){	
	 
	 /*
	 	客户跟进table
	 */
	 $('#cusProgressTable').datagrid({
		 pageSize:200,
		 pageList:[200],
		 toolbar:"#addProgressCus",
	 });
	 
	 /**
	 *客户TABLE
	 */
	    $('#cusTable').datagrid({
	    	 onSelect:function(index,rowdata){
				getProgress('c'+rowdata.reqId);
			 }
      	 });
	 
  	 $('#cusTable').datagrid('load',{
			clazz: cusclazz
	});
  	 	
  	 	
	 $("#newCust").click(function(){
		 openCust(null);
	 });
	 
	 $("#editCust").click(function(){
		 var row = $('#cusTable').datagrid('getSelected');
		 if (row){ 
			 openCust(row);
			 fillDatacus(row);
		 }else {
			 $.messager.show({
				 title: '提示',
				 msg: "请选择一条数据"
				 });
		 }
	 });

 })
 
 //获取客户跟进
 	function getProgress(id) {
		 $("#cusProgressTable").datagrid({
			 url:'cusProgress/viewCusProgressJson.html?fkid='+id,
			 method:'get'
		 });
	 }
 
 //打开新建跟进对话框
	function newcusProgress() {
		$("textarea").val("");
		$("#cusprogressType").combobox();
		 var row = $('#cusTable').datagrid('getSelected');
		 if (row){
			$('#cusdlgprocess').dialog('open').dialog('setTitle','新建跟进');	 
		 }else {
			 $.messager.show({
				 title: '提示',
				 msg: "请选择一条数据"
				 });
		 }
	}
	
 	//保存客户跟进
	 function savecusProgress(){
		 var row = $('#cusTable').datagrid('getSelected');
		 $("#cus_id1").val('c'+row.reqId);
		 $('#fmcp').form('submit',{
		 success: function(result){
			 var result = eval('('+result+')');
			 if (result.errorMsg){
				 $.messager.show({
				 title: 'Error',
				 msg: result.errorMsg
				 });
			 } else {
				 
				 $('#cusdlgprocess').dialog('close'); // close the dialog
				 $.messager.show({
					 title: '成功',
					 msg: "数据添加成功"
					 });
				 $('#cusProgressTable').datagrid('reload');

			 }
		 	}
		 });
		}
 
	/**
	*
	* 填充数据
	**/
	function fillDatacus(row) {
	 settingBlock(row.districtId,row);
	 settingUnit(row.blockId,row);
		//id
		$("#reqId").val(row.reqId);
		$("#clazz").val(row.clazz);
		$("#cusName2").val(row.cusName);
		$("#cusPhone").val(row.cusPhone);
		$("#min").val(row.min);
		$("#max").val(row.max);
		$("#low").val(row.low);
		$("#lowAllPrice").val(row.lowAllPrice);
		$("#heighAllPrice").val(row.heighAllPrice);
		$("#height").val(row.height);
		$("#cusMark").val(row.cusMark);
		$("#houseMark1").val(row.houseMark);
		$("#number").val(row.number);
		$("#traffic").val(row.traffic);
		 
		 $("#room1").combobox('setValue', row.room);
		 $("#room1").combobox('setText', row.room);
		 $("#room1").combobox('select', row.room);
 
		 $("#ting1").combobox('setValue', row.ting);
		 $("#ting1").combobox('setText', row.ting);
		 $("#ting1").combobox('select', row.ting);
		 
		 $("#kitchen1").combobox('setValue', row.kitchen);
		 $("#kitchen1").combobox('setText', row.kitchen);
		 $("#kitchen1").combobox('select', row.kitchen);
		 
		 $("#balcony1").combobox('setValue', row.balcony);
		 $("#balcony1").combobox('setText', row.balcony);
		 $("#balcony1").combobox('select', row.balcony);
		 

		 $("#wei1").combobox('setValue', row.wei);
		 $("#wei1").combobox('setText', row.wei);
		 $("#wei1").combobox('select', row.wei);
		 
		 $("#decoration3").combobox('setValue', row.decorationId);
		 $("#decoration3").combobox('setText', row.decoration);
		 $("#decoration3").combobox('select', row.decorationId);
		 
		 $("#property2").combobox('setValue', row.property);
		 $("#property2").combobox('setText', row.property);
		 $("#property2").combobox('select', row.property);
		 
		 $("#status2").combobox('setValue', row.status);
		 $("#status2").combobox('setText', row.status);
		 $("#status2").combobox('select', row.status);
		 
		 $("#face1").combobox('setValue', row.face);
		 $("#face1").combobox('setText', row.face);
		 $("#face1").combobox('select', row.face);

		 $("#age1").combobox('setValue', row.age);
		 $("#age1").combobox('setText', row.age);
		 $("#age1").combobox('select', row.age);

		 $("#owner1").combobox('setValue', row.own);
		 $("#owner1").combobox('setText', row.own);
		 $("#owner1").combobox('select', row.own);
		 
		 $("#source1").combobox('setValue', row.source);
		 $("#source1").combobox('setText', row.source);
		 $("#source1").combobox('select', row.source);
		 
		 $("#pay").combobox('setValue', row.pay);
		 $("#pay").combobox('setText', row.pay);
		 $("#pay").combobox('select', row.pay);
		 
		 $("#houseType1").combobox('setValue', row.houseType);
		 $("#houseType1").combobox('setText', row.houseType);
		 $("#houseType1").combobox('select', row.houseType);
		 
		 $("#customeType").combobox('setValue', row.cusType);
		 $("#customeType").combobox('setText', row.cusType);
		 $("#customeType").combobox('select', row.cusType);
		 
		 $("#entry").datebox('setValue',row.entry);
		unitUrl = "${pageContext.request.contextPath}/custome/updateCustome.html";
	}

  /**
  *打开客源编辑页面
  */
  function openCust(row){
	 $("#fmcust input").val('');
	 $("textarea").val('');
	 $("#bhaId3").combobox();	
	 $("#blockId2").combobox();
	 $("#unitId1").combobox();
	 $("#room1").combobox();
	 $("#ting1").combobox();
	 $("#kitchen1").combobox();
	 $("#balcony1").combobox();
	 $("#wei1").combobox();
	 $("#decoration3").combobox();
	 $("#property2").combobox();
	 $("#status2").combobox();
	 $("#decoration3").combobox();
	 $("#face1").combobox();
	 $("#age1").combobox();
	 $("#owner1").combobox();
	 $("#source1").combobox();
	 $("#pay").combobox();
	 $("#houseType1").combobox();
	 $("#customeType").combobox();
	 $("#entry").datebox();
	 $('#dlgcust').dialog('open').dialog('setTitle',cusclazz);
	 $("#cusclazz").val(cusclazz);
	 $("#reqId").val(0);
	 settingDistrict(row);
 }
 
function  settingDistrict(row) {
	 $.ajax({  
		   type: "POST",  
		   url: "district/viewAllDistrictsJson.html",  
		   dataType:"json",  
		   success: function(json){
		     $("#bhaId3").combobox({  
		        data:json.rows,  
		        valueField:'bha_id',  
		        textField:'bhaName',
		        onSelect:function(rec) {
		        	settingBlock(rec.bha_id,row);	
		        }
		     });
		     
		     if(row != null) {
		    	 $("#bhaId3").combobox('setValue', row.districtId);
				 $("#bhaId3").combobox('setText', row.districtName);
				 $("#bhaId3").combobox('select', row.districtId);
		     }
		   }
	});
 }
 
 function settingBlock(id,row){
	 $.ajax({  
		   type: "POST",  
		   url: "block/getBlocksJson.html?districtId="+id,
		   dataType:"Json",  
		   success:function(json){
			  $("#blockId2").combobox({  
			        data:json.rows,  
			        valueField:'blockId',  
			        textField:'blockName',
			        onSelect:function(rec2) {
			        	settingUnit(rec2.blockId,row);
			        }
			  });
			  if(row) {
				 $("#blockId2").combobox('setValue', row.blockId);
				 $("#blockId2").combobox('setText', row.blockName);
				 $("#blockId2").combobox('select', row.blockId);
			  }
		   }
  	});
 }
 
 function settingUnit(id,row){
	 $.ajax({  
		   type: "POST",  
		   url: "unit/getAllJsonByBlockId/"+id+".html",
		   dataType:"Json",  
		   success:function(json){
			  $("#unitId1").combobox({  
			        data:json.rows,  
			        valueField:'unitId',  
			        textField:'unitName'
			  });
			  
			  if(row != null) {					 
					 $("#unitId1").combobox('setValue', row.unitId);
					 $("#unitId1").combobox('setText', row.unitName);
					 $("#unitId1").combobox('select', row.unitId);
			     }
		   }
  	});
 }
 
 
 function saveCust() {
		$('#fmcust').form('submit', {
			url:cusUrl,
			onSubmit : function() {
				return $(this).form('validate');
			},
			success : function(result) {
				var result = eval('(' + result + ')');
				if (result.errorMsg) {
					$.messager.show({
						title : 'Error',
						msg : result.errorMsg
					});
				} else {
					$('#cusTable').datagrid('reload');
					$('#dlgcust').dialog('close'); // close the dialog
					$.messager.show({
						title : '成功',
						msg : "数据添加成功"
					});
				}
			}
		});
	}
</script>
<div class="easyui-panel"  style="width:auto;height:450px;">
     <table id="cusTable" style="width:auto;height:270px"
     		url="${pageContext.request.contextPath}/custome/viewCustomersJson/pri.html"
			singleSelect="true"
			pagination="true"
			pagePosition="both"
			fitColumns="true"
			toolbar="#toolbarcust"
			pageSize=200,
 			pageList=[200]
			>
	    <thead>
		    <tr>
		    <th data-options="field:'number',width:100">客户编号</th>
		    <th data-options="field:'property',width:100">性质</th>
		    <th data-options="field:'status',width:100">状态</th>
		   	<th data-options="field:'progressTime',width:200">跟进时间</th>
		   	<th data-options="field:'shop',width:100">门店</th>
		   	<th data-options="field:'e_name',width:100">经纪人</th>
		   	<th data-options="field:'cusName',width:100">客户姓名</th>
		   	<th data-options="field:'districtName',width:100">区域</th>
		   	<th data-options="field:'blockName',width:100">板块</th>
		   	<th data-options="field:'unitName',width:100">小区</th>
		   	<th data-options="field:'roomVO',width:100">房型</th>
		   	<th data-options="field:'size',width:100">面积</th>
		   	<th data-options="field:'floorVO',width:100">楼层</th>
		   	<th data-options="field:'allPriceVO',width:100">总价（万元）</th>
		   	<th data-options="field:'createTime',width:100">登记时间</th>
		   	<th data-options="field:'houseMark',width:100">备注</th>
		   	<th data-options="field:'operator',width:100">录入人</th>
		    </tr>
	    </thead>
    </table>
     <div class="easyui-layout" data-options="fit:true">
				<div data-options="region:'center'" style="padding:10px">
					<div class="easyui-tabs" style="width:auto;height:200px">
						<div title="客户跟进" style="padding:10px">
							<table id="cusProgressTable" class="easyui-datagrid" style="width:auto;height:270px;"
								singleSelect="true"
								pagination="true"
								pagePosition="both"
								fitColumns="true"
								rownumbers="true"
								>
						    <thead>
							    <tr>
								    <th data-options="field:'e_name',width:20">跟进人员</th>
								    <th data-options="field:'type',width:20">类型</th>	
								   	<th data-options="field:'createTime',width:70">跟进日期</th>
								   	<th data-options="field:'content',width:100">描述</th>			    
							    </tr>
						    </thead>	
						   </table>
						</div>
					</div>
				</div>
			</div>
</div>
     <div id="toolbarcust">
		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" id="newCust">新建客户</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" id="editCust">编辑客户</a>
		 <span>客户姓名</span>  
  			 <input id="cusName" style="line-height:26px;border:1px solid #ccc">  
   		 <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" id="searchPri" >Search</a>  
	</div>
	 <div id="dlgcust" class="easyui-dialog" style="width:910px;height:520px;padding:10px 20px"
		closed="true" buttons="#dlg-buttons">
			<div class="ftitle">客户基本信息</div>
			<form id="fmcust" method="post"  >
				<input type="hidden" name="clazz" id="cusclazz"/>
				<input type="hidden" name="reqId" id="reqId"/>
				<div class="fitem">
					<label>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</label>
					<input name="cusName" id="cusName2" class="easyui-validatebox"  data-options="required:true,validType:'length[2,10]'">
					<label>电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话:</label>
					<input name="cusPhone" id=cusPhone class="easyui-validatebox"  data-options="required:true,validType:'length[2,100]'">	
					<label>客户类型:</label>
					<select name="cusType" id="customeType"   data-options="editable:false" >
						<option value="普通客户">普通客户</option>
						<option value="VIP">VIP</option>
						<option value="潜在客户">潜在客户</option>
					</select>	
					<label>客户备注:</label>
					<input name="cusMark" id="cusMark" type="text">				
				</div>
				<div style="float: left;">
					<div class="ftitle">基本条件</div>
					<div class="fitem">
						<label>区&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;县:</label>
						<select name="districtId" id="bhaId3"   data-options="editable:false" >
							<option value="-1">不限</option>
						</select>	
						<label>编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
						<input  type="text" id="number" value="系统自动生成" disabled="disabled"/>
					</div>
					<div class="fitem">
						<label>板&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;块:</label>
						<select  name="blockId" id="blockId2" data-options="editable:false">
							<option value="-1">不限</option>
						</select>
						<label>面&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;积:</label>
						<input type="text"	name="min" id="min" title="整数 如 50 100" class="easyui-tooltip"/>~<input type="text" name="max" id="max"  title="整数 如 50 100" class="easyui-tooltip"/>	
					</div>
					<div class="fitem">
						<label>小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区:</label>
						<select name="unitId" id="unitId1"   data-options="editable:false">
							<option value="-1">不限</option>
						</select>	
						<label>楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;层:</label>
						<input type="text"	name="low" id="low" title="整数 如 50 100" class="easyui-tooltip"/>~<input type="text" name="height" id="height" title="整数 如 50 100" class="easyui-tooltip"/>	
					</div>
					<div class="fitem">
						<label>客源类型:</label>
						<select name="property"  id="property2" data-options="editable:false">
							<option value="私客">私客</option>
							<option value="公客">公客</option>
						</select>
						<label>客源状态:</label>
						<select name="status"  id="status2" data-options="editable:false">
							<option value="正常">正常</option>
							<option value="推荐">推荐</option>
							<option value="急售">急售</option>
							<option value="待审">待审</option>
							<option value="暂不售">暂不售</option>
							<option value="电话无效">电话无效</option>
							<option value="成交">成交</option>
							<option value="已卖">已卖</option>
							<option value="无效">无效</option>
						</select>
					</div>
					<div class="fitem">
						<label>房屋类型:</label>
						<select name="houseType"  id="houseType1" data-options="editable:false">
							<option value="多层住宅">多层住宅</option>
							<option value="小高层">小高层</option>
							<option value="高层住宅">高层住宅</option>
							<option value="公寓">公寓</option>
							<option value="商铺">商铺</option>
							<option value="写字楼">写字楼</option>
							<option value="商住楼">商住楼</option>
							<option value="独栋别墅">独栋别墅</option>
							<option value="联排别墅">联排别墅</option>
							<option value="叠加别墅">叠加别墅</option>
							<option value="双拼别墅">双拼别墅</option>
							<option value="多层复式">多层复式</option>
							<option value="民房">民房</option>
							<option value="洋房">洋房</option>
							<option value="四合院">四合院</option>
							<option value="厂房">厂房</option>
							<option value="车库">车库</option>
							<option value="地皮">地皮</option>
							<option value="其他">其他</option>
						</select>	
						<label>交通状况:</label>
						<input type="text" name="traffic" id="traffic"/>
					</div>
					<div  class="fitem">
						 <label>户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型:</label>
						        <select name="room" id="room1"   data-options="editable:false" style="width: 40px">
						        	<option value="0">0</option>
						        	<option value="1">1</option>
						        	<option value="2">2</option>
						        	<option value="3">3</option>
						        	<option value="4">4</option>
						        	<option value="5">5</option>
						        	<option value="6">6</option>
						        	<option value="7">7</option>
						        	<option value="8">8</option>
						        </select>室
						       	<select name="ting" id="ting1"   data-options="editable:false">
						      		<option value="0">0</option>
						        	<option value="1">1</option>
						        	<option value="2">2</option>
						        	<option value="3">3</option>
						        	<option value="4">4</option>
						        </select>厅
						        <select name="kitchen" id="kitchen1"   data-options="editable:false">
						        	<option value="0">0</option>
						        	<option value="1">1</option>
						        	<option value="2">2</option>
						        	<option value="3">3</option>
						        </select>厨
						        <select name="wei" id="wei1"   data-options="editable:false">
						        	<option value="0">0</option>
						        	<option value="1">1</option>
						        	<option value="2">2</option>
						        	<option value="3">3</option>
						        	<option value="4">4</option>
						        </select>卫
						        <select name="balcony" id="balcony1"   data-options="editable:false">
						        	<option value="0">0</option>
						        	<option value="1">1</option>
						        	<option value="2">2</option>
						        	<option value="3">3</option>
						        </select>阳台
					</div>
					<div  class="fitem">
						<label>装&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;修:</label>
				        <select name="decoration"  id="decoration3" data-options="editable:false">
							<option value="-1">不限</option>
							<option value="1">毛坯</option>
							<option value="2">简单装修</option>
							<option value="3">中等装修</option>
							<option value="4">精装修</option>
							<option value="5">豪华装修</option>
						</select>
						<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;朝&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;向:</label>
						<select name="face" id="face1" data-options="editable:false">
							<option value="不限">不限</option>
							<option value="东">东</option>
							<option value="南">南</option>
							<option value="西">西</option>
							<option value="北">北</option>
							<option value="东南">东南</option>
							<option value="东西">东西</option>
							<option value="南北">南北</option>
							<option value="南南">南南</option>
							<option value="东北">东北</option>
							<option value="西南">西南</option>
							<option value="西北">西北</option>
						</select>					
					</div>
					<div  class="fitem">
						<label>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;代:</label>
						<select name="age" id="age1"   data-options="editable:false">
							<option value="未知 ">未知</option>
							<option value="2019 ">2019</option>
							<option value="2018">2018</option>
							<option value="2017 ">2017</option>
							<option value="2016">2016</option>
							<option value="2015">2015</option>
							<option value="2014">2014</option>
							<option value="2013">2013</option>
							<option value="2012">2012</option>
							<option value="2011">2011</option>
							<option value="2010">2010</option>
							<option value="2009 ">2009</option>
							<option value="2008">2008</option>
							<option value="2007">2007</option>
							<option value="2006">2006</option>
							<option value="2005">2005</option>
							<option value="2004">2004</option>
							<option value="2003">2003</option>
							<option value="2002">2002</option>
							<option value="2001">2001</option>
							<option value="2000">2000</option>
							<option value="1999">1999</option>
							<option value="1998">1998</option>
							<option value="1997">1997</option>
							<option value="1996">1996</option>
							<option value="1995">1995</option>
							<option value="1994">1994</option>
							<option value="1993">1993</option>
							<option value="1992">1992</option>
							<option value="1991">1991</option>
							<option value="1990">1990</option>
							<option value="1989">1989</option>
							<option value="1988 ">1988</option>
							<option value="1987">1987</option>
							<option value="1986">1986</option>
							<option value="1985">1985</option>
							<option value="1984">1984</option>
							<option value="1983">1983</option>
							<option value="1982">1982</option>
							<option value="1981">1981</option>
						</select>
						<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;产&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;权:</label>
								<select name="own"  id="owner1" data-options="editable:false">
									<option value="个人">个人</option>
									<option value="单位">单位</option>
									<option value="售后">售后</option>
									<option value="家庭成员共有">家庭成员共有</option>
									<option value="使用权">使用权</option>
									<option value="小产权">小产权</option>
									<option value="协议房">协议房</option>
									<option value="私产">私产</option>
									<option value="公产">公产</option>
									<option value="合同发票">合同发票</option>
									<option value="三联单">三联单</option>
									<option value="其他">其他</option>
								</select>				
					</div>
					<div class="fitem">
						<label>入住时间:</label>
						<input type="text" name="entry" id="entry"/>
						<label>来&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;源</label>
						<select name="source"  id="source1" data-options="editable:false">
									<option value="来电">来电</option>
									<option value="来访">来访</option>
									<option value="中介">中介</option>
									<option value="朋友">朋友</option>
									<option value="扫街">扫街</option>
									<option value="网络">网络</option>
									<option value="独家">独家</option>
									<option value="传单">传单</option>
									<option value="导入">导入</option>
									<option value="其他">其他</option>
						</select>
					</div>
					<div class="fitem">
						<label style="vertical-align: top; width: 30px;">房源备注</label>
						<textarea name="houseMark" id="houseMark1"></textarea>
					</div>
				</div>
				<div style="margin-left:10px;">
					<div class="ftitle">买方条件</div>
					<div class="fitem">
						<label>总&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价:</label>
						<input type="text"	name="lowAllPrice" id="lowAllPrice" title="整数 如 50 100" class="easyui-tooltip"/>~<input type="text" name="heighAllPrice" id="heighAllPrice" title="整数 如 50 100" class="easyui-tooltip"/>	
					</div>
					<div class="fitem">
						<label>付款方式</label>
						<select name="pay"  id="pay" data-options="editable:false">
							<option value="其他">其他</option>
							<option value="公积金贷款">公积金贷款</option>
							<option value="商贷">商贷</option>
							<option value="组合贷款">组合贷款</option>
							<option value="全款">全款</option>
						</select>
					</div>
				</div>

			<div style="clear:both;">
				 <div id="dlg-buttons">
					<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="saveCust()">保存</a>
					<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlgcust').dialog('close')">取消</a>	
				</div>
			</div>
		</form>
	</div>
	
<div id="addProgressCus">
	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="newcusProgress()">添加跟进</a>		
</div>

 <div id="cusdlgprocess" class="easyui-dialog" style="width:600px;height:auto;padding:10px 20px"
		closed="true">
		<form id="fmcp" method="post" action="${pageContext.request.contextPath}/cusProgress/addCusProgress.html">
		<input type="hidden" name="cus_id" id="cus_id1"/>
			<div class="ftitle">客户跟进</div>		
			<div class="fitem">
				<label style="width: 30px;">类型</label>
				<select name="progressType" id="cusprogressType" data-options="editable:false">
					<option value="电话">电话</option>
					<option value="拜访">拜访</option>
					<option value="预约">预约</option>
				</select>
			</div>
			<div class="fitem" style="width:auto;">
				<label style="vertical-align: top; width: 30px;">跟进内容</label>
				<textarea name="content" id="cuscontent"></textarea>
			</div>
 		<div class="ftitle"></div>	
			<div id="dlg-buttons" style="text-align: right;">
				<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="savecusProgress()">保存</a>
				<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#cusdlgprocess').dialog('close')">取消</a>
			</div>	
 	</div>